package momo.multitree.visual;

import java.io.FileNotFoundException;
import java.io.FileReader;

import momo.multitree.algo.LatencyShortestPath;
import momo.multitree.structure.Edge;
import momo.multitree.structure.Graph;
import momo.multitree.structure.Node;
import momo.multitree.structure.Tree;
import junit.framework.TestCase;

public class TreeRenderOutputTest extends TestCase
{
	public void testOutput() throws FileNotFoundException, Exception
	{
		String filename = "10_node_symmetric_dataset_55.txt";
		Graph g = new Graph(new FileReader("dataset/"+filename));
		
		
		LatencyShortestPath latTest = new LatencyShortestPath();
		Tree bestLatTree = latTest.optimumTree(g);
		bestLatTree.outputVisual("10_node_symmetric_dataset_55");
	}
}
